package edu.friday.service;

import edu.friday.common.result.TableDataInfo;
import edu.friday.model.SysUser;
import edu.friday.model.vo.SysUserVO;
import org.springframework.data.domain.Pageable;
import java.util.List;

public interface SysUserService {
    TableDataInfo selectUserList(SysUserVO sysUserVO, Pageable pageable);

    boolean insertUser(SysUserVO user);

    String checkUserNameUnique(String userName);

    String checkPhoneUnique(SysUserVO sysUserVO);

    String checkEmailUnique(SysUserVO sysUserVO);

    int deleteByUserIds(Long[] userIds);

    boolean updateUser(SysUserVO sysUserVO);

    List<Long> selectRoleListByUserId(Long userId);

    SysUser selectUserById(Long userId);

    SysUser selectUserByUserName(String userName);
}
